import java.util.Scanner;

/**
 * Created by 84995 on 2020/1/14.
 */
public class test1 {

    public static void main(String[] args) {




        Scanner  sc=new Scanner(System.in);

        System.out.println("请输入一个整数");
        int aa = sc.nextInt();

        if (aa%3==0&&aa%5==0&&aa%7==0){
            System.out.println("能同时被3，5，7整除");
        }else if (aa%3==0&&aa%5==0){
            System.out.println("能被3，5整除");
        }else if (aa%5==0&&aa%7==0){
            System.out.println("能被5，7整除");
        }else if (aa%3==0){
            System.out.println("能被3整除");
        }else if (aa%5==0){
            System.out.println("能被7整除");
        }else if (aa%7==0){
            System.out.println("能被7整除");
        }else if (aa%3!=0||aa%5==0||aa%7==0){
            System.out.println("不能被任何数整除");
        }


    }
}
